from django.conf.urls import url
from django.urls import path

from apps.organization.views import OrgView, AddAskView, OrgHomeView, OrgTeacherView, OrgCourseView, OrgDescView, \
    TeacherListView, TeacherDetailView

urlpatterns = [
    # 机构列表
    url(r'^list/$', OrgView.as_view(), name="list"),
    # 用户咨询
    url(r'^add_ask/$', AddAskView.as_view(), name="add_ask"),
    # 机构详情页
    url(r'^detail/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name="home"),
    # path('detail/<int:org_id>/',OrgHomeView.as_view(), name="home")
    # 机构讲师
    url(r'^teacher/(?P<org_id>\d+)/$', OrgTeacherView.as_view(), name="teacher"),
    # 机构课程
    url(r'^course/(?P<org_id>\d+)/$', OrgCourseView.as_view(), name="course"),
    # 机构介绍
    url(r'^desc/(?P<org_id>\d+)/$', OrgDescView.as_view(), name="desc"),
    # 教师列表
    url(r'^teachers/$', TeacherListView.as_view(), name="teachers"),
    # 教师详情
    url(r'^teacherDetail/(?P<teacher_id>\d+)/$', TeacherDetailView.as_view(), name="teacher_detail"),

]
